package com.wing.portal.aggregation.portletinfo;

import com.wing.common.util.SpringDI;

public class PortletInfoFactroy {
	public static PortletInfo createPortletInfo(String flag) {
		if (flag.equals("article")) {
			return (PortletInfo) SpringDI.getBean("articlePortletInfo");
		} else if (flag.equals("menu")) {
			return (PortletInfo) SpringDI.getBean("menuPortletInfo");
		} else if (flag.equals("product")) {
			return (PortletInfo) SpringDI.getBean("productPortletInfo");
		}else if (flag.equals("content")) {
			return (PortletInfo) SpringDI.getBean("contentPortletInfo");
		}else if (flag.equals("pictrue")) {
			return (PortletInfo) SpringDI.getBean("picPortletInfo");
		}else if (flag.equals("pictrue")) {
			return (PortletInfo) SpringDI.getBean("picPortletInfo");
		}else{
			return (PortletInfo) SpringDI.getBean("customPortletInfo");
		}
	}

}
